]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
run-dialog: Center error message vertically
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 27 Jan 2011 20:56:12 +0000 (21:56 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 27 Jan 2011 21:05:46 +0000 (22:05 +0100)
Commit 912a30c56 left error message and icon aligned to the top,
but it looks better when the message is centered vertically.

js/ui/runDialog.js

index a86e9bdd4e33988cb4562a99b1e4e208e04a754b..5bf578b6644396ec960ae2b00ae7d454f4878b68 100644 (file)
@@ -232,7 +232,9 @@ __proto__: ModalDialog.ModalDialog.prototype,
         this._errorMessage = new St.Label({ style_class: 'run-dialog-error-label' });
         this._errorMessage.clutter_text.line_wrap = true;
 
-        this._errorBox.add(this._errorMessage, { expand: true, y_align: St.Align.MIDDLE });
+        this._errorBox.add(this._errorMessage, { expand: true,
+                                                 y_align: St.Align.MIDDLE,
+                                                 y_fill: false });
 
         this._errorBox.hide();